package com.alipay.demo.trade.model.result;

import com.alipay.api.response.AlipayTradeRefundResponse;
import com.alipay.demo.trade.model.TradeStatus;
import com.alipay.demo.trade.model.result.Result;

public class AlipayF2FRefundResult implements Result {

   private TradeStatus tradeStatus;
   private AlipayTradeRefundResponse response;


   public AlipayF2FRefundResult(AlipayTradeRefundResponse response) {
      this.response = response;
   }

   public void setTradeStatus(TradeStatus tradeStatus) {
      this.tradeStatus = tradeStatus;
   }

   public void setResponse(AlipayTradeRefundResponse response) {
      this.response = response;
   }

   public TradeStatus getTradeStatus() {
      return this.tradeStatus;
   }

   public AlipayTradeRefundResponse getResponse() {
      return this.response;
   }

   public boolean isTradeSuccess() {
      return this.response != null && TradeStatus.SUCCESS.equals(this.tradeStatus);
   }
}
